package com.cnhis.cloudhealth.clinical.clidoctor.clibackadvice.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.cnhis.cloudhealth.clinical.clidoctor.clibackadvice.bo.CliBackAdviceBo;
import com.cnhis.cloudhealth.clinical.clidoctor.clinewadvice.bo.CliNewAdviceBo;
import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import com.cnhis.cloudhealth.commons.newid.GetNewId;

@Service
public class CliBackAdviceImpl implements ICliBackAdvice {
	@Autowired
	private CliNewAdviceBo cliNewAdviceBo;
	@Autowired
	private GetNewId getNewId;
	@Autowired
	private CliBackAdviceBo cliBackAdviceBo;
	/**
	 * Clinic_Send_Advice_Blank
	 * 医嘱回退操作
	 */
	@Override
	public ModelVo clinicSendAdviceBlank(Map map) throws Exception {
		
		
		return cliBackAdviceBo.execClinicSendAdviceBlank(map);
	}
	@SuppressWarnings("unchecked")
    @Override
	public ModelVo judgeBackAdvice(Map map) throws Exception {
	  //WJT 这个参数没有获取--@apara269 = dbo.GetSysParamValue(100,105002,269)/*医嘱单部分没扣费允许回退且直接作废*/
        Long apara269 = getNewId.nextId();
        map.put("apara269", apara269);
		return cliBackAdviceBo.judgeBackAdvice(map);
	}

    
	
}
